import { http } from "@/utils/http";
import httpConfig from "@/utils/http/httpConfig";
const prefix = httpConfig.edu;

/**
 * 获取 顶部导航列表
 * @param params
 */
export function NavList(params?: Record<string, any>) {
    return http.post(prefix+"/nav/list", {params} );
}

/**
 * 添加 顶部导航
 * @param params
 * @returns {*}
 */
export function NavAdd(params: Record<string, any>) {
    return http.post(prefix+"/nav", {data:params });
}

/**
 * 修改 顶部导航
 * @param params
 * @returns {*}
 */
export function NavEdit(params: Record<string, any>) {
    return http.post(prefix+"/nav/edit", {data:params });
}

/**
 * 删除 顶部导航
 * @param params
 * @returns {*}
 */
export function NavDelete(params: Record<string, any>) {
    return http.post(prefix+"/nav/del" , {data:params });
}

/**
 * 获取详情 顶部导航
 * @param params
 * @returns {*}
 */
export function NavDetail(params: any) {
    return http.get(prefix+"/nav/" + params );
}
